package com.sunyard.client2.conf;

import java.awt.Frame;

import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.border.EmptyBorder;

public class Editor extends JDialog {

	private JPanel contentPane;

	/**
	 * Create the frame.
	 */
	public Editor() {
		loadProperty();
		init();
	}

	public Editor(Frame owner, boolean modal) {
		super(owner, "配置", modal);
		loadProperty();
		init();
		this.pack();
	}
	private void loadProperty() {
		ConfUtil.reload();
	}
	public void init() {
		setBounds(100, 100, 582, 387);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(0, 0, 680, 426);
		contentPane.add(tabbedPane);
		tabbedPane.add("服务器配置", new ConfServerPanel());
		tabbedPane.add("模型配置", new ConfModelPanel());
	}

}
